import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

//hzq
//import Coupon from '../components/Coupon/Coupon'
//import AddCoupon from '../components/Coupon/AddCoupon'

//msy
import OrderTable from '../components/order/OrderTable.vue'
import CourseOrderTable from '../components/order/CourseOrderTable.vue'
import LogisticsInformation from "../components/order/LogisticsInformation";
import Detail from '../components/order/Detail'

//hzq
import Coupon from '../components/Coupon/Coupon'
import AddCoupon from '../components/Coupon/AddCoupon'
import UserCoupon from '../components/Coupon/UserCoupon'
import viewDetails from '../components/Coupon/ViewDetails'
import CourseReviewP from '../components/comment/CommentList'
import MicroCircleComments from '../components/comment/MicroCircleComments'
import ProductReview from '../components/comment/ProductReview'
import CarouselList from '../components/carouselchart/CarouselList'
import AddCarousel from '../components/carouselchart/AddCarousel'


//zlj
import CommodityList from '../components/product/Product'
import AddCommodity from '../components/product/ProductAdd'
import CommodityJournal from '../components/product/ProductLog'
import ProductToExamine from '../components/product/ProductToExamine'
import CourseCollection from '../components/statistics/CourseCollection'
import CourseSalesVolume from '../components/statistics/CourseSalesVolume'
import ProductCollection from '../components/statistics/ProductCollection'
import ProductSalesVolume from '../components/statistics/ProductSalesVolume'
import ProductSearchVolume from '../components/statistics/ProductSearchVolume'
import StatisticalChart from '../components/statistics/StatisticalChart'
import CourseNumberLikes from '../components/statistics/CourseNumberLikes'
import ProductLikeQuantity from '../components/statistics/ProductLikeQuantity'

//lzf
import curriculum from '../components/course/coursetable'
import courseadd from '../components/course/courseadd'
import app from "../components/course/app"
import courselog from "../components/course/courselog"
import coursecomments from "../components/course/coursecomments"
import coursereview from "../components/course/coursereview"


//whz

import ShowMicrocycle from '../components/microcircle/TinyCircle'
import AddMicrocycle from '../components/microcircle/AddMicro'
import MicroDetails from '../components/microcircle/MicroDetails'
import returnDetail from "../components/order/returnDetail";
import OrderDetail from "../components/order/OrderDetail";
import CancelTable from "../components/order/CancelTable";


//创建路由的实例对象
const router = new VueRouter({

  routes:[
      //优惠券列表
      {path:'/CouponList',component:Coupon},
      //优惠券添加
      {path:'/AddCoupon',component:AddCoupon},
      //查看用户拥有优惠券
      {path:'/UserCoupon',component:UserCoupon},
      //查看明细
      {path:'/viewDetails/:UserId',name:'UserId',component:viewDetails,props: true},
      //课程评论列表
      {path:'/CourseReviewP',component:CourseReviewP},
      //微圈评论列表
      {path:'/MicroCircleComments',component:MicroCircleComments},
      //订单评论列表
      {path:'/ProductReview',component:ProductReview},
      //轮播图列表
      {path:'/CarouselList',component:CarouselList},
      //添加轮播图
      {path:'/AddCarousel',component:AddCarousel},
      //商品订单列表
      {path:'/OrderList',component:OrderTable},
      //订单详情
      {path:'/orderDetail',component:OrderDetail},
      //商品订单详情
      {path:'/detail',component:Detail},
      //物流详情
      {path:'/LogisticsInfor',component:LogisticsInformation},
      //退货详情
      {path:'/returnDetail',component:returnDetail},
      //退货列表
          {path:'/ReturnList',component:CancelTable},
      //课程列表
      {path:'/CourseList',component:CourseOrderTable},
      //退货列表
      // {path:'/ReturnList',component:AddCoupon},
      //商品列表
      {path:'/CommodityList',component:CommodityList},
      //商品添加
      {path:'/AddCommodity',component:AddCommodity},
      //商品：操作日志
      {path:'/CommodityJournal',component:CommodityJournal},
      {path:'/CommodityJournal/:product',name:'productlog',component:CommodityJournal,props: true},
      //商品添加
      {path:'/curriculum',component:curriculum},
      //商品审核
      {path:'/toexamine',component:ProductToExamine},
      //查看微圈
      {path:'/ShowMicrocycle',component:ShowMicrocycle},
      //添加微圈
      {path:'/AddMicrocycle',component:AddMicrocycle},
      //微圈：查看详情
      {path:'/details/:id',name:"details",component:MicroDetails,props:true},
  //统计
      //商品关键字搜索统计
      {path:'/keyword',component:ProductSearchVolume},
      //商品统计图
      {path:'/StatisticalChart',component:StatisticalChart},
      //商品销量统计
      {path:'/CommoditySales',component:ProductSalesVolume},
      //商品收藏统计
      {path:'/CommodityCollection',component:ProductCollection},
      //商品关键字搜索统计
      {path:'/keyword',component:ProductSearchVolume},
      //商品点赞统计
      {path:'/ProductLikeQuantity',component:ProductLikeQuantity},
      //课程收藏量统计
      {path:'/CourseCollection',component:CourseCollection},
      //课程销量统计
      {path:'/CourseSales',component:CourseSalesVolume},
      //课程点赞统计
      {path:'/NumberOfCourseLikes',component:CourseNumberLikes},

      {path:'/details/:id',name:"details",component:MicroDetails,props:true},
      //app管理
      {path:'/App',component:app},
      //课程日志
      {path:'/courselog',component:courselog},
      {path:'/courselog/:courselogid',name:'courselog',component:courselog,props: true},
      //课程评论
      {path:'/coursecomments',component:coursecomments},
      //课程审核
      {path:'/coursereview',component:coursereview},
      //课程添加
      {path:'/courseadd',component:courseadd},

  ]
})

export default router
